package edu.sctu.xialei.May.day20150522one;

/**
 * Created by Administrator on 5/22/2015.
 */
public class SomeOperator extends ElementaryDataType{

    public void  operator(){

        String stringData3;

        System.out.println("数据++  " + (byteData ++));
        System.out.println("++数据  " + (++ byteData));

        intData ++;
        System.out.println("数据++； " + intData);

        ++ intData;
        System.out.println("++数据； " + intData);

        floatData -= 6;
        System.out.println("数据 -=6； " + floatData);

        stringData3 = stringData1 + "是" +stringData2;
        System.out.println("连接String后： " + stringData3);

        System.out.println("字符串比较");
        System.out.println(stringData4.equals(stringData5));
        System.out.println(stringData4.equalsIgnoreCase(stringData5));


//        stringData3 = intData + floatData;错误，其中一个操作数必须是字符串；


    }
}
